import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';

import PageApp from './components/App';

export default class Routes extends Component {
  requireAuth = (Layout, props) => {
    return <Layout {...props} />
  }

  render() {
    return (
      <Router>
        <Switch>
          <Route path="/" component={ PageApp } />
        </Switch>
      </Router>
    );
  }
}
